package ${packageName};

public class ${className?cap_first} {

<#if columnList??>
<#list columnList as column>
<#if column.columnType == "Integer">
    private Integer ${column.columnName};

<#elseif column.columnType == "JSONObject">

    private ${column.columnName?cap_first}${classExtendName?cap_first} ${column.columnName};

<#elseif column.columnType == "JSONArray">
    private List<${column.columnName?substring(0, column.columnName?index_of("L"))?cap_first}${classExtendName?cap_first}> ${column.columnName};

<#else>
    private ${column.columnType} ${column.columnName};

</#if>
</#list>
<#list columnList as column>
<#if column.columnType == "Integer">

    public Integer get${column.columnName?cap_first}() {
        return ${column.columnName};
    }

    public void set${column.columnName?cap_first}(Integer ${column.columnName}) {
        this.${column.columnName} = ${column.columnName};
    }
<#elseif column.columnType == "JSONArray">

    public List<${column.columnName?substring(0, column.columnName?index_of("L"))?cap_first}${classExtendName?cap_first}> get${column.columnName?cap_first}() {
        return ${column.columnName};
    }

    public void set${column.columnName?cap_first}(List<${column.columnName?substring(0, column.columnName?index_of("L"))?cap_first}${classExtendName?cap_first}> ${column.columnName}) {
        this.${column.columnName} = ${column.columnName};
    }
<#elseif column.columnType == "JSONObject">

    public ${column.columnName?cap_first}${classExtendName?cap_first} get${column.columnName?cap_first}() {
        return ${column.columnName};
    }

    public void set${column.columnName?cap_first}(${column.columnName?cap_first}${classExtendName?cap_first} ${column.columnName}) {
        this.${column.columnName} = ${column.columnName};
    }
<#else>

    public ${column.columnType} get${column.columnName?cap_first}() {
        return ${column.columnName};
    }

    public void set${column.columnName?cap_first}(${column.columnType} ${column.columnName}) {
        this.${column.columnName} = ${column.columnName};
    }
</#if>
</#list>
</#if>

}
